package com.example.rjb_shoping.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.io.Serializable;

/**
 * (RjbOrder)实体类
 *
 * @author makejava
 * @since 2021-06-09 20:43:02
 */
@ToString
@Data
public class RjbOrder implements Serializable {
    private static final long serialVersionUID = -37528515679218457L;
    @JsonProperty(value = "oid")
    private Integer oId;    //订单ID
    @JsonProperty(value = "oNumber")
    private String oNumber; //订单号
    @JsonProperty(value = "mId")
    private Integer mId; //产品ID
    @JsonProperty(value = "oActual")
    private Double oActual; //实际支付价格
    @JsonProperty(value = "oOrginal")
    private Double oOrginal;  //支付价格
    @JsonProperty(value = "oPayStatus")
    private Integer oPayStatus;    //支付状态
    @JsonProperty(value = "oStatus")
    private Integer oStatus; //订单状态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date oCreate;   //订单创建日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date oCarryout; //订单过期时间
    @JsonProperty(value = "cId")
    private Integer cId;    //客户ID
    @JsonProperty(value = "isRule")
    private Integer isRule;    //是否使用促销规则， 1=使用，0=不使用
    @JsonProperty(value = "sId")
    private Integer sId;    //秒杀ID
    @JsonProperty(value = "oCount")
    private Integer oCount;    //购买数量
    @JsonProperty(value = "oSort")
    private Integer oSort; //购买者序号

    private RjbCustomer customer; //客户对象
    private RjbCommodity commodity; //商品对象
}
